#include <stdio.h>

#define MAXLINE 1024

char line[MAXLINE];

int getLine(void) {
    int c, i;
    extern char line[];

    for (i = 0; i < MAXLINE-1 && (c = getchar()) != EOF && c != '\n'; ++i) {
        line[i] = c;
    }
    if (c == '\n') {
        line[i] = c;
        ++i;
    }
    line[i] = '\0';
    return i;
}

void main() {
    int len;

    while ((len = getLine()) > 0) {
        printf("%s", line);
    }
}